//
//  SSDKLoginData.m
//  SuperSDK
//
//  Created by wyht－ios－dev on 15/10/7.
//  Copyright © 2015年 WYHT. All rights reserved.
//

#import "SSDKLoginData.h"
#import "SSDKDataKeys.h"

@implementation SSDKLoginData

- (instancetype) setSdkUid:(NSString *)sdkUid {
    [self.data setValue:sdkUid forKey:SDK_UID];
    
    return self;
}

- (NSString *) sdkUid {
    return [self dataWithKey:SDK_UID];
}

- (instancetype) setAccessToken:(NSString *)aToken {
    [self.data setValue:aToken forKey:ACCESS_TOKEN];
    
    return self;
}

- (NSString *) accessToken {
    return [self dataWithKey:ACCESS_TOKEN];
}

- (instancetype) setRefreshToken:(NSString *)rToken {
    [self.data setValue:rToken forKey:REFRESH_TOKEN];
    
    return self;
}

- (NSString *) refreshToken {
    return [self dataWithKey:REFRESH_TOKEN];
}

- (instancetype) setAppData:(NSString *)appData {
    return [self setExtraValue:appData forKey:APP_DATA];
}

- (NSString *) appData {
    return [self extraWithKey:APP_DATA];
}

@end
